package com.blog.page;

/**
 */
public class PageDefinition {
    protected int pageNo = 1; // 当前页
    protected int size; // 总记录数
    protected int pageSize = 25;// 分页记录

    protected CommonList commonList;//自定义分页对象

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public CommonList getCommonList() {
        return commonList;
    }

    public void setCommonList(CommonList commonList) {
        this.commonList = commonList;
    }

    protected CommonList createCommonList(){
        return new CommonList(size, pageNo, pageSize);
    }

}
